/*
 * @Descripttion: 
 * @version: @ 1.0.0
 * @Author: ZJZ
 * @Date: 2021-07-30 10:45:34
 * @LastEditors: 朱江洲
 * @LastEditTime: 2021-12-15 16:52:35
 */
import request from "@/utils/request.js";

// 获取阿里支付
export const getAli = () => {
    return request({
        method: 'get',
        url: '/serviceProvide/aliPayConfig/getConfig',
    })
}

// 阿里支付配置修改
export const editAli = data => {
    return request({
        method: 'post',
        url: '/serviceProvide/aliPayConfig/edit',
        data
    })
}


// 获取微信支付
export const getChat = () => {
    return request({
        method: 'get',
        url: '/serviceProvide/wechatPayConfig/getConfig',
    })
}

// 修改微信支付
export const editChat = data => {
    return request({
        method: 'post',
        url: '/serviceProvide/wechatPayConfig/edit',
        data
    })
}

// 获取网银支付设置
export const getBank = () => {
    return request({
        method: 'get',
        url: '/serviceProvide/onlineBank/getConfig',
    })
}

// 修改网银支付
export const editBank = data => {
    return request({
        method: 'post',
        url: '/serviceProvide/onlineBank/edit',
        data
    })
}

// 微信开启改变
export const chatChangeStatus = params => {
    return request({
        method: 'get',
        url: '/serviceProvide/wechatPayConfig/changeStatus',
        params
    })
}

// 支付宝开启改变
export const aliChangeStatus = params => {
    return request({
        method: 'get',
        url: '/serviceProvide/aliPayConfig/changeStatus',
        params
    })
}
// 支付宝开启改变
export const bankChangeStatus = params => {
    return request({
        method: 'get',
        url: '/serviceProvide/onlineBank/changeStatus',
        params
    })
}
